/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package matching.path;


import org.semanticweb.owl.model.OWLClass;
import org.semanticweb.owl.model.OWLObjectProperty;


/**
 *
 * @author livia
 */
public class PropertyPair extends PairOfPath{

    private OWLObjectProperty link;

    public PropertyPair(OWLClass tgt, OWLObjectProperty prop) {
        super(tgt);
        this.link = prop;
    }

    public OWLObjectProperty getProperty(){
        return link;
    }

    @Override
    public String toString(){
        return link.toString()+" "+tgt.toString();
    }

}
